const mongoose = require('mongoose');

// 创建分类表的schema

const cateSchema = new mongoose.Schema({
  cateName: {
    type: String,
    required: true
  },
  cateDesc: String,
  cateIcon: String,
  pid: {
    type: String,
    default: "0" // 0顶层分类
  }
})

// 创建cateModel
const cateModel = mongoose.model('qf_cates', cateSchema);

module.exports = cateModel;